/**
 * Created by zn on 17-4-1.
 */
import mysql from 'mysql';
import setting from '../setting'
export default class pool {
    constructor (){
        this.mysqlPool = mysql.createPool({
            host            : setting.mysql.host,
            user            : setting.mysql.user,
            password        : setting.mysql.password,
            database        : setting.mysql.db
        })
    }
    query (){
        this.mysqlPool.query.apply(this.mysqlPool, arguments);
    }
}
